package com.jungle.sp.daily.feature.d8_structured_concurrency;

import java.util.concurrent.Callable;
import java.util.concurrent.TimeUnit;

/**
 * @author Jungle
 * @create 2024-07-14 9:45
 */
public record EmpTask() implements Callable<String> {
    @Override
    public String call() throws Exception {
        System.out.println("查询员工信息开始");
        TimeUnit.SECONDS.sleep(3);
        System.out.println("查询员工信息结束");
        return "员工姓名：杨紫";
    }
}
